package io.renren.modules.lucky.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.lucky.entity.AppWxUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * app端-微信-用户信息表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-10-24 10:18:24
 */
@Mapper
public interface AppWxUserDao extends BaseMapper<AppWxUserEntity> {

    /**
     * @param openId
     * @return
     */
    AppWxUserEntity queryByOpenId(@Param("openId") String openId);

    /**
     * 电话是否绑定了微信 TODO
     *
     * @param phoneNum
     * @return
     * @author HObOCat
     * @date 2019/11/8 9:49
     */
    int countByPhone(@Param("phoneNum") String phoneNum);

}
